#
#  Be sure to run `pod spec lint BLAPIManagers.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

  s.name         = "WB_AFNetworking"
  s.version      = "2"
  s.swift_version = '5.1'
  s.summary      = "WB_AFNetworking."
  s.description  = <<-DESC
                    this is WB_AFNetworking --- 4.0.1 ---
                   DESC

  s.homepage     = "https://gitee.com/wenmobo/WB_AFNetworking"
  s.license      = { :type => "MIT", :file => "FILE_LICENSE" }
  s.author             = { "CasaTaloyum" => "casatwy@msn.com" }
  s.source       = { :git => "https://gitee.com/wenmobo/WB_AFNetworking.git", :tag => s.version.to_s }

  s.ios.deployment_target = '9.0'
  s.osx.deployment_target = '10.10'
  s.watchos.deployment_target = '2.0'
  s.tvos.deployment_target = '9.0'

  s.ios.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' }
  s.osx.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' }
  s.watchos.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking-watchOS' }
  s.tvos.pod_target_xcconfig = { 'PRODUCT_BUNDLE_IDENTIFIER' => 'com.alamofire.AFNetworking' }

  s.source_files  = "WB_AFNetworking/WB_AFNetworking/AFNetworking/AFNetworking.h"

  s.subspec 'Serialization' do |ss|
    ss.source_files = 'WB_AFNetworking/WB_AFNetworking/AFNetworking/AFURL{Request,Response}Serialization.{h,m}'
  end

  s.subspec 'Security' do |ss|
    ss.source_files = 'WB_AFNetworking/WB_AFNetworking/AFNetworking/AFSecurityPolicy.{h,m}'
  end

  s.subspec 'Reachability' do |ss|
    ss.ios.deployment_target = '9.0'
    ss.osx.deployment_target = '10.10'
    ss.tvos.deployment_target = '9.0'

    ss.source_files = 'WB_AFNetworking/WB_AFNetworking/AFNetworking/AFNetworkReachabilityManager.{h,m}'
  end

  s.subspec 'NSURLSession' do |ss|
    ss.dependency 'WB_AFNetworking/Serialization'
    ss.ios.dependency 'WB_AFNetworking/Reachability'
    ss.osx.dependency 'WB_AFNetworking/Reachability'
    ss.tvos.dependency 'WB_AFNetworking/Reachability'
    ss.dependency 'WB_AFNetworking/Security'

    ss.source_files = 'WB_AFNetworking/WB_AFNetworking/AFNetworking/AF{URL,HTTP}SessionManager.{h,m}', 'WB_AFNetworking/WB_AFNetworking/AFNetworking/AFCompatibilityMacros.h'
  end

  s.subspec 'UIKit' do |ss|
    ss.ios.deployment_target = '9.0'
    ss.tvos.deployment_target = '9.0'
    ss.dependency 'WB_AFNetworking/NSURLSession'

    ss.source_files = 'WB_AFNetworking/WB_AFNetworking/UIKit+AFNetworking'

  end

  s.requires_arc = true

end
